#include <QApplication>
#include <QFont>
#include <QPushButton>
#include <QWidget>

class MyWidget : public QWidget {
public:
    MyWidget(QWidget *parent = nullptr) : QWidget(parent) {
        setFixedSize(200, 120);
        QPushButton *quit = new QPushButton("Quit", this);
        quit->setFont(QFont("Times", 18, QFont::Bold));
        quit->setGeometry(62, 40, 75, 30);
        connect(quit, &QPushButton::clicked, qApp, &QApplication::quit);
    }
};

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);
    MyWidget widget;
    widget.show();
    return app.exec();
}
